SetFileFlag is an XCMD allowing to change the value of the authorized Finder flags of a folder.
SYNTAX
SetFolderFlag <file path or name>,<flag name>[,<flag state>]
PARAMETERS
<file path or name> can be a single name or whole pathname. If just a single name is supplied, the file is assumed to be in the same folder than the current stack.
<flag name> must be one of the following string values (accepted System 7.0 values are enclosed in brackets) :
busy (hasCustomIcon), System (nameLocked), invisible (isInvisible)
<flag state> is a boolean defining the desired state of the choosen flag. Default value is TRUE.
Using "!", "?" or "=" as first parameter will return an online help (resp. copyright, syntax and output).
ERRORS
If an error occurs, the XCMD will return in the Result :
Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: